package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.model.vo.SysConfigVo;
import com.weixing.mall.provider.api.model.vo.SysUserEditVo;
import com.weixing.mall.provider.api.service.SysConfigServiceFeign;
import org.springframework.stereotype.Component;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/5 15:24
 * @Modified By:
 */
@Component
public class SysConfigServieFallback implements SysConfigServiceFeign {

    @Override
    public Result<SysConfigVo> getByCode(String cfgCode) {
        return ResultUtil.error("cms服务暂时不可用");
    }

    @Override
    public Result<SysUserEditVo> getUserById(Long userId) {
        return ResultUtil.error("服务不可用");
    }
}
